package ReturnEntity;

public enum  StatusCode {

    SUCCESS("成功",200),
    FAIL("失败",400),

    ;

    private String message;

    private int code;

    StatusCode(String message, int code) {
        this.message = message;
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public int getCode() {
        return code;
    }
}
